/* GateWayIml.java 
* Created on Dec 13, 2012 
*@Author: Mr.Viet 
*@Phone: 01683430426 
*@Email: phamvanvietcdhd@gmail.com
*/ 
package com.session8; 

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class GateWayIml extends UnicastRemoteObject implements IGateWay {

	protected GateWayIml() throws RemoteException {
		super();
	}

	@Override
	public int add(int a, int b) throws RemoteException {
		return a+b;
	}

	@Override
	public int sub(int a, int b) throws RemoteException {
		return a-b;
	}
						

}
